<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>

<body class="bg-gray-100 min-h-screen flex items-center justify-center p-4">
    <!-- 注册容器 -->
    <div class="w-full max-w-md bg-white rounded-lg shadow-md overflow-hidden">
        <!-- 顶部标题区 -->
        <div class="bg-emerald-600 p-6 text-center">
            <h1 class="text-white text-2xl font-bold">账号注册</h1>
            <p class="text-emerald-100 mt-1">创建新账号，开始使用服务</p>
        </div>

        <!-- 表单区域 -->
        <div class="p-6">
            <form>
                <!-- 用户名输入 -->
                <div class="mb-4">
                    <label class="block text-gray-700 text-sm mb-1" for="username">
                        用户名
                    </label>
                    <div class="relative">
                        <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
                            <i class="fa fa-user"></i>
                        </span>
                        <input type="text" id="username" 
                               class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg 
                                      focus:border-emerald-500 focus:ring-2 focus:ring-emerald-200 focus:outline-none"
                               placeholder="请设置用户名" required>
                    </div>
                </div>

                <!-- 邮箱输入 -->
                <div class="mb-4">
                    <label class="block text-gray-700 text-sm mb-1" for="email">
                        邮箱地址
                    </label>
                    <div class="relative">
                        <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
                            <i class="fa fa-envelope"></i>
                        </span>
                        <input type="email" id="email" 
                               class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg 
                                      focus:border-emerald-500 focus:ring-2 focus:ring-emerald-200 focus:outline-none"
                               placeholder="请输入邮箱" required>
                    </div>
                </div>

                <!-- 密码输入 -->
                <div class="mb-4">
                    <label class="block text-gray-700 text-sm mb-1" for="password">
                        设置密码
                    </label>
                    <div class="relative">
                        <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
                            <i class="fa fa-lock"></i>
                        </span>
                        <input type="password" id="password" 
                               class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg 
                                      focus:border-emerald-500 focus:ring-2 focus:ring-emerald-200 focus:outline-none"
                               placeholder="至少8位字符" required>
                    </div>
                </div>

                <!-- 确认密码 -->
                <div class="mb-6">
                    <label class="block text-gray-700 text-sm mb-1" for="confirm-password">
                        确认密码
                    </label>
                    <div class="relative">
                        <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
                            <i class="fa fa-lock"></i>
                        </span>
                        <input type="password" id="confirm-password" 
                               class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg 
                                      focus:border-emerald-500 focus:ring-2 focus:ring-emerald-200 focus:outline-none"
                               placeholder="再次输入密码" required>
                    </div>
                </div>

                <!-- 注册按钮 -->
                <button type="submit" 
                        class="w-full bg-emerald-600 text-white py-2.5 px-4 rounded-lg font-medium
                               hover:bg-emerald-700 transition-colors duration-300">
                    完成注册
                </button>
            </form>

            <!-- 条款协议 -->
            <div class="mt-4 text-center text-gray-500 text-sm">
                点击注册即表示同意我们的
                <a href="#" class="text-emerald-600 hover:underline">服务条款</a>
                和
                <a href="#" class="text-emerald-600 hover:underline">隐私政策</a>
            </div>

            <!-- 登录链接 -->
            <div class="mt-6 text-center text-gray-600">
                已有账号? <a href="#" class="text-emerald-600 font-medium hover:underline">立即登录</a>
            </div>
        </div>
    </div>
</body>
</html>